<?php
/**
 * 登录首页
 *
 *
 */
class Welcome extends MY_Controller
{
	function __construct()
    {
        parent::__construct();
		$this->check_manage_session();
    }
	
	function index()
	{	
		$data['sidelist'] = $this->admin_model->get_list('channel','','','','sort ASC,id DESC');
		foreach ($data['sidelist'] as $channellist){
		    $data['article_num'][$channellist['en_name']]=$this->admin_model->get_num($channellist['en_name']);
		}
		$data['user_num']=$this->admin_model->get_num('admin');
		$this->load->view($this->config->item('system_manage_path').'welcome',$data);
	}
   
}
?>